<template>
  <div>
    <common-bgblur imageUrl="http://resource.ihaozhuo.com/zstjapp/banners/bjbr049.jpg">
      <el-row :gutter="20">
        <el-col :span="3" v-for="item in Types">
          <div class="grid-content bg-purple">
            <el-button :plain="true" type="info" style="width:100%" @click="onClickMenusList(item)" >{{ item.name }}</el-button>
          </div>
        </el-col>
      </el-row>
    </common-bgblur>
  </div>
</template>

<script>
import services from './services.js'
export default {
  data(){
    return {
      Types: []
    }
  },
  mounted(){
    services.MenusTypes((result) => {
      this.Types = result
    })
  },
  methods: {
    onClickMenusList(item){
      this.$router.push(`/MenusList/${item.id}`)
    }
  }
}
</script>

<style>
  .grid-content{
    margin:5px;
  }
  .bg-purple{
    text-align:center;
    padding-bottom: 10px;
    position: relative;
    margin: 5px;
  }
</style>
